package com.smart.platform.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.time.LocalDateTime;

//学情分析实体类
@Data

public class Analysis {
    //主键
    private Long id;

    //考次
    private Integer state;

    //班级
    private Integer classes;

    //年级
    private Integer grade;
    //学校

    private String school;

    //所有学生总成绩平均值
    private Float averageTotal;

    //科目最高分
    private Float maxTotal;

    //科目最低分
    private Float minTotal;

    //语文
    private Float chineseAverage;

    //数学
    private Float mathAverage;

    //英语
    private Float englishAverage;

    //物理
    private Float physicsAverage;

    //化学
    private Float chemistryAverage;

    //生物
    private Float biologyAverage;

    //政治
    private Float politicalAverage;

    //历史
    private Float historyAverage;

    //地理
    private Float geographyAverage;

    //创建时间只在插入的时候设置，更新时间在插入和更新的时候都要设置，所以update是INSERT_UPDATE，create是INSERT
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    //创建时插入字段
    @TableField(fill = FieldFill.INSERT)
    private String createUser;

    //创建和更新时插入字段
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateUser;
}
